package com.feihong.txgw.inter.contract.user;

import com.feihong.txgw.ui.mvp.model.IBaseModel;
import com.feihong.txgw.ui.mvp.precenter.AbBasePrecenter;
import com.feihong.txgw.ui.mvp.view.IBaseActivity;

import io.reactivex.Observable;
import okhttp3.MultipartBody;

/**
 * @Author wangziheng
 * @ProjectName txgw_app
 * @ClassName IUserInfoEditContract
 * @package com.feihong.txgw.inter.contract.user
 * @data 2018/5/7 20:06
 * @Describe
 * @Change
 */
public interface IUserInfoEditContract  {
    interface IUserInfoEditMainView extends IBaseActivity{

        void getUserInfoResult(String result);

        void getUserInfoError();

        void upLoadUserImgResult(String result);

        void upLoadUserImgError();
    }

    interface IUserInfoEditMainModel extends IBaseModel{

        Observable<String> getUserInfo(String type, String info);

        Observable<String> upLoadUserImg(MultipartBody.Part file);
    }

    abstract class AbUserInfoEditMainPrecenter extends AbBasePrecenter<IUserInfoEditMainModel,IUserInfoEditMainView>{

        public abstract void getUserInfo(String type,String info);

        public abstract void upLoadUserImg(MultipartBody.Part file);
    }
}
